package com.witdata.common.service.community;

import com.witdata.common.domain.dto.CommunityDto;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface CommunityService {

    List<CommunityDto> getCommunityList();

    CommunityDto getCommunityById(Long id);

    List<CommunityDto> getCommunityListByUserId(Long userId);

    void createCommunity(MultipartFile avatar, String name, String description, String title);

    void dissolveCommunity(CommunityDto communityDto);
}
